<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>AI做题伙伴</title>
    <!-- <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous" /> -->
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.3/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" th:href="@{/css/style.css}">
</head>
<body>
<nav class="navbar navbar-expand-lg bg-dark navbar-dark fixed-top">
    <div class="container">
        <a href="#" class="navbar-brand">AI做题伙伴</a>

        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navmenu">
            <span class="navbar-toggler-icon"></span>
        </button>

        <div class="collapse navbar-collapse" id="navmenu">
            <ul class="navbar-nav ms-auto">
                <!--margin start = margin left-->
                <li class="nav-item">
                    <div class="nav-link">前端</div>
                </li>
                <li class="nav-item">
                    <div class="nav-link">后端</div>
                </li>
                <li class="nav-item">
                    <div class="nav-link">数据分析</div>
                </li>
            </ul>
        </div>
    </div>
</nav>


<section class="p-5 bg-dark text-light text-center text-sm-start">
    <!--padding -->
    <div class="container p-5 my-5 bg-dark text-white">
        <div class="d-flex juzhong">
            <!--display flex-->

            <ol th:if="${!#lists.isEmpty(topics)}">
                <li th:each="item : ${topics}">
                    <a href="#" th:text="${item.title}"></a>
                </li>
            </ol>

            <!-- <img src="img/showcase.svg" alt="showcase" class="w-50 d-none d-md-block" /> -->
        </div>
        <a href="/topic/dailyTopic" class="attractive-button">随机十题</a>
    </div>
</section>
<footer class="p-5 bg-dark text-white text-center">
    <div class="container">
        <p class="lead">Copyright &copy; 2024 K.X</p>
    </div>
</footer>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js"
        integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
        crossorigin="anonymous"></script>
</body>

</html>